package com.ymttest.database.sqlwapper;

import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtFundDimension;
import com.ymttest.database.model.YmtProducts;
import com.ymttest.database.model.YmtProductsI;
import com.ymttest.utils.EnvSetup;

/************************************************************************************
 * @File name : AttachProductToLivesWapper.java
 * @Author : 邓金姣
 * @Date : 2016年11月25日
 * @Copyright : 洋码头
 * 查找退单ID
 ************************************************************************************/
public class AgreeApplyWapper {
	SqlManager manage;

	
	public AgreeApplyWapper() {
		manage = new SqlManager("ymtstress");
		 
	}
	public List<Map> Tuidanid(Map m) throws InterruptedException {
		List<Map> TuidanID = manage.getSelectResults("com.ymttest.database.mapping.AgreeApplyMapper.TuidanID", m );
		// manage.close();
		return TuidanID;
	}
	
	public static void main(String args[]) {
	    try {	          
	    	
	    	AgreeApplyWapper agreeApplyWapper = new AgreeApplyWapper();
	    	Map m = new HashMap();
	    	m.put("OrderId", 105400329);	
	        List<Map> rm = agreeApplyWapper.Tuidanid(m); 
	        for(Map map : rm)
	        {        
	        	
	        	String iOrderId= String.valueOf(map.get("iOrderId"));
	        	Logger.debug(iOrderId);  
	        	String RefundBillNo = String.valueOf(map.get("RefundBillNo"));
	        	Logger.debug(RefundBillNo);  
	        	String iBuyerId = String.valueOf(map.get("iBuyerId"));
	        	Logger.debug(iBuyerId);  	        	
	        	
	        		
	        }
 
	    } catch (InterruptedException e) {
	        e.printStackTrace(); 
	    }
	}
	
	
}
